//
//  YWHengVideoListController.h
//  videoTest3
//
//  Created by jun peng on 2022/6/19.
//

#import <UIKit/UIKit.h>
#import "YWControllerListStatus.h"
#import "JXPagerView.h"
#import "YWHomeRecommendVedioCell.h"

NS_ASSUME_NONNULL_BEGIN

@class YWHengVideoListController;

@protocol  YWHengVideoListControllerDelegate <NSObject>

@optional

//点击了子VC的播放器要告诉一下主VC (传cell为了转换frame由主VC完成)
-(void)hengVideoViewInListVCDidTap:(YWHengVideoListController *)controller cell:(YWHomeRecommendVedioCell *)cell withStatus:(YWGetNewsDataStatus *)status videoStatusType:(YWVideoLocationType)videoStatusType vedioIndex:(NSInteger)index;

//点击了子VC的Cell要告诉一下主VC (传cell为了转换frame由主VC完成)
-(void)hengCellDidTap:(YWHengVideoListController *)controller cell:(YWHomeRecommendVedioCell *)cell withStatus:(YWGetNewsDataStatus *)status videoStatusType:(YWVideoLocationType)videoStatusType vedioIndex:(NSInteger)index;



-(void)hengVideoListController:(YWHengVideoListController *)vc scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate;

-(void)hengVideoListController:(YWHengVideoListController *)vc scrollViewDidEndDecelerating:(UIScrollView *)scrollView;

- (void)hengVideoListController:(YWHengVideoListController *)vc scrollViewDidScroll:(UIScrollView *)scrollView;


@end

@interface YWHengVideoListController : UIViewController<JXPagerViewListViewDelegate>

//这个里面有remark属性、可能会有用、作为加载接口的参数
@property(nonatomic,strong)YWControllerListStatus *status;

/* 代理 */
@property (nonatomic, weak) id<YWHengVideoListControllerDelegate>delegate;


@property(nonatomic,assign)YWVideoLocationType videoStatusType;

@property (nonatomic, strong) UITableView *tableView;

@property(nonatomic,strong,readonly)NSMutableArray *statusArray;

-(void)scrollToIndexRow:(NSInteger)index;


-(void)scrollToIndexRowToTop:(NSInteger)index;


@end

NS_ASSUME_NONNULL_END
